package com.kuaimacode.kframework.mybatis.models.push;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("sys_push_token")
public class SysPushToken {

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private Long userId;

    /**
     * 设备类型 0 安卓 1 iOS
     */
    @ApiModelProperty(value = "设备类型 0 安卓 1 iOS")
    @TableField("device_type")
    private Byte deviceType;

    /**
     * 推送token
     */
    @ApiModelProperty(value = "推送token")
    @TableField("push_token")
    private String pushToken;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField("create_at")
    private Date createAt;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @TableField("update_at")
    private Date updateAt;
}